package com.atguigu.gmall.service;

import com.atguigu.gmall.bean.Person;
import com.atguigu.gmall.bean.UserAddress;

import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;

public interface OrderService {
	
	/**
	 * 初始化订单
	 * @param userId
	 */
	public List<UserAddress> initOrder(String userId);

	List<Person> doOrder(String orderId);

	default String checkAsync(String name) throws ExecutionException, InterruptedException, TimeoutException {
		return "default say hei" + name;
	}

}
